package com.zb.vo;

import com.zb.annotation.NumberPattern;
import com.zb.result.PageUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @Author WEN
 * @Date 2024/3/25 0025
 **/
@Data
@ApiModel("服务商下拉数据搜索条件")
public class NetworkSelectSearchVo extends PageUtil {
    @ApiModelProperty(value = "服务商名称")
    private String name;

    @NotNull(message = "筛选类型不能为空")
    @NumberPattern(regexp = "^(0|1|2|3)$", required = true, message = "筛选类型参数不合法")
    @ApiModelProperty(value = "筛选类型：0-不限制，1-服务商分类，2-按服务区域，3-按工单客户地址", required = true, example = "0")
    private Integer type;

    @NumberPattern(regexp = "^(1|2)$", message = "地址区域类型参数不合法")
    @ApiModelProperty(value = "地址区域类型：1-匹配全地址，2-仅匹配省、市，当type=2或3时生效且必填", example = "1")
    private Integer areaType;

    @ApiModelProperty(value = "服务商分类ID")
    private Long typeId;

    @ApiModelProperty(value = "省")
    private String province;

    @ApiModelProperty(value = "市")
    private String city;

    @ApiModelProperty(value = "区/县")
    private String area;


}
